﻿@model ContactManagement.Models.EditUserModel
@{
    ViewBag.Title = Resources.PageTitles.UserDetailsRESX;
}
<h2>@Resources.PageTitles.DetailsRESX</h2>
<fieldset>
    <legend>@Resources.PageTitles.UserDetailsRESX</legend>
     <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.UserTitle)
        </div>
        <div class="display-field">
            @* ACHTUNG es gibt eine Extra Helper Methode die den Namen der Kategorie anzeigt. *@
            @Html.Categories().DisplayForCategory(Model.UserTitle)
        </div>
    </div>
    <div class="clear-all" />
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.UserName)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.UserName)
        </div>
    </div>
    <div class="clear-all" />
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.Firstname)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Firstname)
        </div>
    </div>
    <div class="clear-all" />
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.Lastname)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Lastname)
        </div>
    </div>
    <div class="clear-all" />
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.Handy)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Handy)
        </div>
    </div>
    <div class="clear-all" />
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.Birthdate)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Birthdate)
        </div>
    </div>
    <div class="clear-all" />
</fieldset>
<p>
@* Hier werden keine Rechte geprüft, da es sich um Funktionen handelt die Jeder User mit seinen Eigenen Daten durchführen darf. *@
    @Html.ActionLink(Resources.Navigation.BackToStartpageRESX, EActionHome.Index.ToString(), EControllers.Home.ToString())
    @Html.ActionLink(Resources.Navigation.EditUserRESX, EActionUser.Edit.ToString(), new { id = Model.UserId })
    @Html.ActionLink(Resources.Navigation.ChangePasswordRESX, EActionUser.ChangePassword.ToString(), EControllers.User.ToString())
</p>
